const wechat = {
  /**
   * 
   * {
  jsapi_ticket: 'O3SMpm8bG7kJnF36aXbe80lLb5twcx6XZzrF_4BACUQF0mOoDlTsV1m49Vud0DETx2SMfj8AoVBgQ3BNn1pLsQ',
  nonceStr: 'z8hckkd291',
  timestamp: '1630024773',
  url: 'http://szx-blog-7g1gyviddb1b5c44-1257342648.tcloudbaseapp.com/myuniapp',
  signature: '5080dfd4fba44a0859792359b1d36332b125d4ca'
}
   */
  initWxConfig() {
    this.$wx.config({
      debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
      appId: "wx2188729b190d357d", // 必填，公众号的唯一标识
      timestamp: "1630024773", // 必填，生成签名的时间戳
      nonceStr: "z8hckkd291", // 必填，生成签名的随机串
      signature: "5080dfd4fba44a0859792359b1d36332b125d4ca", // 必填，签名
      jsApiList: [
        "updateAppMessageShareData",
        "updateTimelineShareData",
        "onMenuShareTimeline",
        "onMenuShareAppMessage",
        "onMenuShareQQ",
        "onMenuShareWeibo",
        "onMenuShareQZone",
        "startRecord",
        "stopRecord",
        "onVoiceRecordEnd",
        "playVoice",
        "pauseVoice",
        "stopVoice",
        "onVoicePlayEnd",
        "uploadVoice",
        "downloadVoice",
        "chooseImage",
        "previewImage",
        "uploadImage",
        "downloadImage",
        "translateVoice",
        "getNetworkType",
        "openLocation",
        "getLocation",
        "hideOptionMenu",
        "showOptionMenu",
        "hideMenuItems",
        "showMenuItems",
        "hideAllNonBaseMenuItem",
        "showAllNonBaseMenuItem",
        "closeWindow",
        "scanQRCode",
        "chooseWXPay",
        "openProductSpecificView",
        "addCard",
        "chooseCard",
        "openCard",
      ], // 必填，需要使用的JS接口列表
    });
    this.$wx.ready(function() {
      console.log("通过ready接口处理成功验证");
    });
    this.$wx.error(function(res) {
      console.log(res, "通过error接口处理失败验证");
    });
  },
};

export default wechat;
